<?php
return [
    'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
    'timezone' => 'PRC',
    'name' => '有试吗',
    'language' => 'zh-CN',
    'components' => [
        'urlManager'=>[
            'enablePrettyUrl'=>true,
            'showScriptName'=>false,
        ],
        /*'cache' => [
            'class' => 'yii\caching\MemCache',
            'servers' => [
                [
                    'host' => 'localhost',
                    'port' => 11211,
                    'weight' => 60,
                ],
                [
                    'host' => 'localhost',
                    'port' => 11211,
                    'weight' => 40,
                ],
            ],
        ],*/
        'db' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=172.28.6.9;dbname=d_try',
            'username' => 'root',
            'password' => 'qwezxc',
            'charset' => 'utf8',
        ],
        'db_weixin' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=172.28.6.148;dbname=weixin',
            'username' => 'root',
            'password' => 'wulin',
            'charset' => 'utf8',
        ],
        'redis' => [
            'class' => 'common\components\redis\Connection',
            'hostname' => '172.28.6.21',
            'port' => 6381,
            'database' => 0,
        ],
        'redis_index' => [
            'class' => 'common\components\redis\Connection',
            'hostname' => '172.28.6.21',
            'port' => 6382,
            'database' => 0,
        ],
        'redis_goods' => [
            'class' => 'common\components\redis\Connection',
            'hostname' => '172.28.6.21',
            'port' => 6383,
            'database' => 0,
        ],
        'redis_comments' => [
            'class' => 'common\components\redis\Connection',
            'hostname' => '172.28.6.21',
            'port' => 6384,
            'database' => 0,
        ],
        'redis_old' => [
            'class' => 'common\components\redis\Connection',
            'hostname' => '172.28.6.10',
            'port' => 6381,
            'database' => 0,
            'prefix' => 't:',
        ],
        'formatter' => [
            'dateFormat' => 'yyyy-MM-dd',
            'datetimeFormat' => 'yyyy-MM-dd HH:mm:ss',
            'decimalSeparator' => '.',
            'thousandSeparator' => ',',
            'currencyCode' => 'CNY',
        ],
        'mini' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=172.28.6.9;dbname=d_mini',
            'username' => 'root',
            'password' => 'qwezxc',
            'charset' => 'utf8',
        ],
        'solr' => [
            'class' => 'sammaye\solr\Client',
            'options' => [
                'endpoint' => [
                    'solr1' => [
                        'host' => '172.28.6.20',
                        'port' => '8080',
                        'path' => '/solr/liketry'
                    ]
                ]
            ]
        ],

    ],

];
